home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tree / sample < prev    next >
Text File  |  1993-09-01  |  2KB  |  115 lines

  1.  
  2. Here are some example trees to display with the tree program.  First,
  3. the examples from the man page:
  4.  
  5.  (ex1)    \tree (S(NP(John))(VP(runs)))
  6.  
  7.  (ex2)    \tree ((((John)(runs))))
  8.  
  9. %(ex3)    \tree \- this line will remain unchanged
  10.  
  11.  (ex4) is not given, since it has an error
  12.  
  13.  (ex5)    \tree -q (a phrase composed of others(a phrase
  14.         (a)(phrase))
  15.         This is a comment.(composed) (of others
  16.         (of)(others)) )
  17.  
  18.  (ex6)    \tree ((S(John)(V(runs)(fast))) (==$>$)
  19.         (S(V(runs)(fast))(S(John)(does))))
  20.  
  21.  (ex7)  \tree (S        % Comments like this
  22.                  (NP        % are skipped over.
  23.                    (John)
  24.                  )
  25.                  (VP
  26.                    (runs)
  27.                  )
  28.                )
  29.  
  30.  (ex8)    \tree (NP (Det(John's \(genitive\)))
  31.         (N\([+count]\)(legs)) )
  32.  
  33.  (ex9)    \tree (\T S (every) (good boy)
  34.                 (VP (\L V(does)) (\L A(fine)) ))
  35.  
  36.  (ex10)    \tree (S(PP\O\D(near)(him))(NP(John))
  37.                 (VP\M(saw)(a snake)))
  38.  
  39. Then here are a couple of trees from the sample file Jeff Goldberg
  40. distributed:
  41.  
  42. (1) \tree
  43. (S (NP[+WH] (Who))
  44.    (S/NP (V[INV] (did))
  45.      (NP (you))
  46.      (VP[BSE]/NP (V[BSE] (see))
  47.                (NP[NULL]/NP (e))
  48.      )
  49.    )
  50. )
  51.  
  52. (2) \tree
  53. (S (PP (P1 (P (on))
  54.        (NP (which)
  55.            (N1 (N (table)))
  56.        )
  57.        )
  58.    )
  59.    (S/PP (V (do))
  60.      (NP (you))
  61.      (VP/PP (V (think))
  62.          (S/PP (NP (Martha))
  63.         (VP/PP (V (believes))
  64.             (S/PP (NP (Irving))
  65.             (VP/PP (V (put)) (NP (Det (the) (N1 (N (book)))))
  66.                  (PP/PP (e))
  67.             )
  68.             )
  69.         )
  70.         )
  71.     )
  72.     )
  73. )
  74.  
  75. Chris Barker gave these examples (in a slightly different
  76. form):
  77.  
  78.     \tree
  79. ((S (NP (N) (PP (P) (NP)))
  80.     (VP (V) (PP (P) (NP))))
  81.  
  82.  (\I S (\I NP (N) (\I PP (P) (NP)))
  83.     (VP (V) (\I PP (P) (NP)))))
  84.  
  85.     \tree
  86. (\I\(mutakaatib\)\L
  87.     (u
  88.  (u ((C\O)(V)(C\O)))
  89.  (a (V) (C\O)
  90.     (V)
  91.     (V))
  92. (i ((C\O)(V)(C\O))))
  93.     )
  94.  
  95.     \tree
  96. ( (C
  97.      (u\I
  98.     (m)
  99.     (\O)    % leave space below first `V' in upper tree
  100.     (g)
  101.     (n)
  102.     (\O)    % leave space below second `V' in upper tree
  103.     (t)
  104.      )
  105.   )
  106.   (V)
  107.   (C ())    % empty node attaches to `g'
  108.   (C ())    % empty node attaches to `n'
  109.   (V)
  110.   (C ())    % empty node attaches to `t'
  111.   ((\O(s\O)))
  112. )
  113.  
  114. \bye
  115.